package com.learn.rmi;

import java.io.IOException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;

/**
 * @author wangxing
 * @version 2020/7/4 13:25 Administrator
 */
public class RmiRegister {
    public static void main(String[] args) {
        try {
            System.out.println("注册中心注册成");
            LocateRegistry.createRegistry(8888);
            System.in.read();
        } catch (RemoteException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
